/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.model;
import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.support.GenericEntity;

/**
 *任务修改记录
 */
@Entity
@Table(name = "ls_task_record")
public class TaskRecord implements GenericEntity<Long> {

	private static final long serialVersionUID = 1698178768166119874L;

	/** 主键 */
	private Long id; 
		
	/** 任务Id */
	private Long taskId; 
		
	/** 执行人 */
	private Long userId; 
		
	/** 动作， 0：CREATE, 1： FINISH, 2： CANCEL, 3： CLOSE，4： COMMENT */
	private String action; 
		
	/** 评论 */
	private String comment; 
		
	/** 执行时间 */
	private Date createTime; 
		
	
	public TaskRecord() {
    }
		
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "TASK_RECORD_SEQ")
	public Long  getId(){
		return id;
	} 
		
	public void setId(Long id){
			this.id = id;
		}
		
    @Column(name = "task_id")
	public Long  getTaskId(){
		return taskId;
	} 
		
	public void setTaskId(Long taskId){
			this.taskId = taskId;
		}
		
    @Column(name = "user_id")
	public Long  getUserId(){
		return userId;
	} 
		
	public void setUserId(Long userId){
			this.userId = userId;
		}
		
    @Column(name = "action")
	public String  getAction(){
		return action;
	} 
		
	public void setAction(String action){
			this.action = action;
		}
		
    @Column(name = "comment")
	public String  getComment(){
		return comment;
	} 
		
	public void setComment(String comment){
			this.comment = comment;
		}
		
    @Column(name = "create_time")
	public Date  getCreateTime(){
		return createTime;
	} 
		
	public void setCreateTime(Date createTime){
			this.createTime = createTime;
		}
	


} 
